package com.umeox.watch.moto.dataservice.mqtt.interfaces;


import com.umeox.moto.mqtt.base.AError;
import com.umeox.moto.mqtt.base.ARequest;
import com.umeox.moto.mqtt.base.AResponse;

/**
 * Created by Rambo 2020/4/29
 * Describe:此接口用于MQTT客户端向服务器发布消息时的回调
 * 回调成功还是失败
 */
public interface IPublishListener {

    void onSuccess(ARequest request, AResponse response);

    void onFailure(ARequest request, Object message, AError error);
}
